package com.yiding.sys.common.model;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * @author War horse imwarhorse@aliyun.com
 * Date: 2020/8/13
 * Description: No Description
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class PageResult<T> implements Serializable {

	private static final long serialVersionUID = 2829910949532734341L;

	/**
	 * 总数
	 */
	private Long count;
	/**
	 * 是否成功：0 成功、1 失败
	 */
	private int code;
	/**
	 * 当前页结果集
	 */
	private List<T> data;

}
